package org.fly4j.part1.servlet;

import org.fly4j.part1.helper.ClassHelper;

import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * Created by 37284 on 2016/1/2.
 */
@WebServlet(urlPatterns = "/*",loadOnStartup = 0)
public class DispatcherServlet extends HttpServlet {
    @Override
    public void init(ServletConfig config) throws ServletException {
        ClassHelper.getClassSet();
     //   System.out.print("init class size:"+ClassHelper.getClassSet().size());
    }

    @Override
    protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {

      //  System.out.print("init class size:"+ClassHelper.getClassSet().size());
        super.service(req, resp);
    }
}
